package com.example.dormitorysystem.service;

import com.example.dormitorysystem.entity.Auth;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 吉吉王国组
 * @since 2022-11-13
 */
public interface AuthService extends IService<Auth> {

    Map<String, Object> login(Map<String, Object> loginInput, HttpServletRequest request, HttpServletResponse response);

    Map<String, Object> refreshToken(String token, String refresh_token, HttpServletRequest request, HttpServletResponse response);
     void logout(HttpServletRequest request);
}
